gettint text of ViewInteraction element in espresso. Raw. getText.kt. fun getText(matcher: ViewInteraction): String {. var text = String(). matcher.perform ...
Is there a way I can access the text of the element in Android Studio? (to access whatever text is there... not check if some text exists in the element)
To get the text of the ViewInteraction element, we need to cast it to TextView with getting the assignable form of it then extract the text that the view ...